package com.wangzh.nio.chars;

import java.io.FileWriter;
import java.io.IOException;

public class FileWriterDemo {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("chardemo.txt");

//        缓存大小8192，大于缓存直接写入到本地文件
        for (int i = 0; i < 8192; i++) {
            fw.write(97);

        }
        System.out.println("============");

        fw.close();
    }
}
